package com.zang.schema.observable.ring;

/**
 * 学生 监听器
 *
 * @author Zhang Qiang
 * @Date 2019/8/29 17:37
 */
public class Student implements EventListener {
    @Override
    public void heardBell(RingEvent ringEvent) {
        if (ringEvent.getRingSound()){
            System.out.println("student back");
        }else {
            System.out.println("student out");
        }
    }
}
